/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hhf.worldzones.entities;

import hhf.flex.annotations.entities.FlexChildren;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author François
 */
@Entity
public class Continent extends Zone implements Serializable {
	@OneToMany(mappedBy = "continent")
	@FlexChildren
	private Collection<Country> countries;

	/**
	 * @return the countries
	 */
	public Collection<Country> getCountries() {
		return countries;
	}

	/**
	 * @param countries the countries to set
	 */
	public void setCountries(Collection<Country> countries) {
		this.countries = countries;
	}

}
